.class public Lcom/instagram/android/a/y;
.super Lcom/instagram/ui/c/a;
.source "SharingAccountsAdapter.java"


# instance fields
.field private a:Lcom/instagram/e/b/c;

.field private b:Lcom/facebook/a/e;


# direct methods
.method public constructor <init>(Lcom/instagram/e/b/c;Landroid/content/Context;Lcom/facebook/a/e;)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 27
    invoke-direct {p0, p2}, Lcom/instagram/ui/c/a;-><init>(Landroid/content/Context;)V

    .line 28
    iput-object p1, p0, Lcom/instagram/android/a/y;->a:Lcom/instagram/e/b/c;

    .line 29
    iput-object p3, p0, Lcom/instagram/android/a/y;->b:Lcom/facebook/a/e;

    .line 30
    return-void
.end method


# virtual methods
.method protected a(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
    .locals 1
    .parameter
    .parameter
    .parameter

    .prologue
    .line 34
    invoke-static {p1, p3}, Lcom/instagram/android/a/b/z;->a(Landroid/content/Context;Landroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    return-object v0
.end method

.method protected a(Landroid/view/View;Landroid/content/Context;I)V
    .locals 4
    .parameter
    .parameter
    .parameter

    .prologue
    .line 39
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/a/b/af;

    invoke-virtual {p0, p3}, Lcom/instagram/android/a/y;->getItem(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/instagram/android/widget/as;

    iget-object v2, p0, Lcom/instagram/android/a/y;->a:Lcom/instagram/e/b/c;

    iget-object v3, p0, Lcom/instagram/android/a/y;->b:Lcom/facebook/a/e;

    invoke-static {p1, v0, v1, v2, v3}, Lcom/instagram/android/a/b/z;->a(Landroid/view/View;Lcom/instagram/android/a/b/af;Lcom/instagram/android/widget/as;Lcom/instagram/e/b/c;Lcom/facebook/a/e;)V

    .line 48
    if-nez p3, :cond_1

    .line 49
    sget v0, Lcom/facebook/av;->input_top:I

    invoke-virtual {p1, v0}, Landroid/view/View;->setBackgroundResource(I)V

    .line 53
    :cond_0
    :goto_0
    return-void

    .line 50
    :cond_1
    iget-object v0, p0, Lcom/instagram/android/a/y;->g:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    if-ne p3, v0, :cond_0

    .line 51
    sget v0, Lcom/facebook/av;->input_bottom:I

    invoke-virtual {p1, v0}, Landroid/view/View;->setBackgroundResource(I)V

    goto :goto_0
.end method

.method public a(Ljava/util/Collection;)V
    .locals 1
    .parameter

    .prologue
    .line 56
    iget-object v0, p0, Lcom/instagram/android/a/y;->g:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 57
    iget-object v0, p0, Lcom/instagram/android/a/y;->g:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 58
    invoke-virtual {p0}, Lcom/instagram/android/a/y;->notifyDataSetChanged()V

    .line 59
    return-void
.end method
